﻿@model IEnumerable<InsightAuto.Domain.Core.Article>
<div class="toolBar">
    @Html.ActionLink("新增", "Create")
    <input type="button" value="移动" />
    <input type="button" value="删除" />
    <input type="text" name="keyword" size="100" value="" />
    @Ajax.ActionLink("搜索", "Search", new AjaxOptions() { HttpMethod="GET", InsertionMode= InsertionMode.Replace })
</div>
<table class="listTable">
    <thead>
        <tr class="header">
            <th style="width:20px"></th>
            <th style="width:120px">分类</th>
            <th style="width:450px">标题</th>
            <th style="width:200px">提交时间</th>
            <th style="width:120px; text-align:center;">来源</th>
        </tr>
    </thead>
    <tbody>
    @foreach (var item in Model)
    {
        <tr>
            <td>@Html.CheckBox(string.Format("checked_{0}", item.ID))</td>
            <td style="text-align:center;">@Html.DisplayFor(modelItem => item.Category.Name)</td>
            <td>@Html.ActionLink(item.Title, "Edit", new { id = item.ID })</td>
            <td>@Html.DisplayFor(modelItem => item.SubmitTime)</td>
            <td style="text-align:center;">@Html.DisplayFor(modelItem => item.Submitter)</td>
        </tr>
    }
    </tbody>
</table>